<form name="altEditor-form" role="form" id="authForm" action="/loadcertsauth" method="post">
						
			<div class="form-group">

					<div class="custom-file" id="customFile" lang="es">
						<input type="file" class="custom-file-input" id="file" name="file" aria-describedby="fileHelp"> 
							<label class="custom-file-label" for="file" th:text="#{form.ssl.file.choose}"></label>
					</div>

				<div style="clear:both;"/>
			</div>
			
			<div class="form-group">

					<label for="authkeystorepass" class="col-form-label" th:text="#{form.keystore.password}"></label>
					<input type="password" style="display:none">
					<input type="password" id="authkeystorepass" name="authkeystorepass" class="form-control" required pattern=".{3,15}" />
									
				<div style="clear:both;"/>
			</div>
							
</form>
<script>
$("input[type=file]").change(function () {

  var fieldVal = $(this).val();

  // Change the node's value by removing the fake path (Chrome)
  fieldVal = fieldVal.replace("C:\\fakepath\\", "");

  if (fieldVal != undefined || fieldVal != "") {
	    $(this).next(".custom-file-label").attr('data-content', fieldVal);
	    $(this).next(".custom-file-label").text(fieldVal);
	  }

});

$(function(){
    $('#authForm').find('input,select').keydown(function(event){
        if ( event.keyCode == 13 ){
            event.preventDefault();
        }
    });
});

</script>